/**
 * Systemprogrammierung

 * Multiplayer-Quiz
 *
 * Server
 * user.h */

#ifndef USER_H
#define USER_H

#include <pthread.h>

/*  Öffentliche Funktionen  */

int remove_user(int);
uint8_t add_user(int, char*);
int get_user_list(char*);
int get_ranking(uint8_t*);
uint8_t get_client_count();
int* get_client_slots();
int get_client_socket(uint8_t);
int create_userdata_mutex();
void userdata_mutex_lock();
void userdata_mutex_unlock();
int set_client_score(uint8_t, uint32_t);

/* ... */

#endif
